# 文件名：list_ttc.py
from fontTools.ttLib import TTCollection

collection = TTCollection("/Users/weiyin/Workspaces/TypusMotrix/data/raw_fonts/SourceHanSans-VF.ttf.ttc")
for i, font in enumerate(collection.fonts):
    name = font["name"].getName(1, 3, 1, 0x409)  # 获取英文字体名
    print(f"Index {i}: {name.toUnicode() if name else 'Unknown'}")
